3.109 \(\int \frac{1+x^2}{(-1+x^2)^2} \, dx\)

Optimal. Leaf size=11 \[ \frac{x}{1-x^2} \]

[Out]

x/(1 - x^2)

________________________________________________________________________________________

Rubi [A]  time = 0.0028755, antiderivative size = 11, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.077, Rules used = {383} \[ \frac{x}{1-x^2} \]

Antiderivative was successfully verified.

[In]

Int[(1 + x^2)/(-1 + x^2)^2,x]

[Out]

x/(1 - x^2)

Rule 383

Int[((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_)), x_Symbol] :> Simp[(c*x*(a + b*x^n)^(p + 1))/a, x]
 /; FreeQ[{a, b, c, d, n, p}, x] && NeQ[b*c - a*d, 0] && EqQ[a*d - b*c*(n*(p + 1) + 1), 0]

Rubi steps

\begin{align*} \int \frac{1+x^2}{\left (-1+x^2\right )^2} \, dx &=\frac{x}{1-x^2}\\ \end{align*}

Mathematica [A]  time = 0.0037914, size = 10, normalized size = 0.91 \[ -\frac{x}{x^2-1} \]

Antiderivative was successfully verified.

[In]

Integrate[(1 + x^2)/(-1 + x^2)^2,x]

[Out]

-(x/(-1 + x^2))

________________________________________________________________________________________

Maple [A]  time = 0.005, size = 16, normalized size = 1.5 \begin{align*} -{\frac{1}{-2+2\,x}}-{\frac{1}{2+2\,x}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x^2+1)/(x^2-1)^2,x)

[Out]

-1/2/(-1+x)-1/2/(1+x)

________________________________________________________________________________________

Maxima [A]  time = 0.972072, size = 14, normalized size = 1.27 \begin{align*} -\frac{x}{x^{2} - 1} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^2+1)/(x^2-1)^2,x, algorithm="maxima")

[Out]

-x/(x^2 - 1)

________________________________________________________________________________________

Fricas [A]  time = 1.2316, size = 19, normalized size = 1.73 \begin{align*} -\frac{x}{x^{2} - 1} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^2+1)/(x^2-1)^2,x, algorithm="fricas")

[Out]

-x/(x^2 - 1)

________________________________________________________________________________________

Sympy [A]  time = 0.080466, size = 7, normalized size = 0.64 \begin{align*} - \frac{x}{x^{2} - 1} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x**2+1)/(x**2-1)**2,x)

[Out]

-x/(x**2 - 1)

________________________________________________________________________________________

Giac [A]  time = 1.1409, size = 15, normalized size = 1.36 \begin{align*} -\frac{1}{x - \frac{1}{x}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^2+1)/(x^2-1)^2,x, algorithm="giac")

[Out]

-1/(x - 1/x)